package com.yixing.tech.common.autoline.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/** 堆垛机WCS上报任务结束的请求参数 */
public class TaskFinishReq implements Serializable {

    @JsonProperty("INSTRUCTION_CODE")
    private String INSTRUCTION_CODE;    // 任务编号
    @JsonProperty("SALVER_ID")
    private String SALVER_ID;           // 托盘号
    @JsonProperty("START_LOCATION")
    private String START_LOCATION;      // 起始位置
    @JsonProperty("END_LOCATION")
    private String END_LOCATION;        // 结束位置

    public TaskFinishReq() {
    }

    public TaskFinishReq(String INSTRUCTION_CODE, String SALVER_ID, String START_LOCATION, String END_LOCATION) {
        this.INSTRUCTION_CODE = INSTRUCTION_CODE;
        this.SALVER_ID = SALVER_ID;
        this.START_LOCATION = START_LOCATION;
        this.END_LOCATION = END_LOCATION;
    }

    public String getINSTRUCTION_CODE() {
        return INSTRUCTION_CODE;
    }

    public void setINSTRUCTION_CODE(String INSTRUCTION_CODE) {
        this.INSTRUCTION_CODE = INSTRUCTION_CODE;
    }

    public String getSALVER_ID() {
        return SALVER_ID;
    }

    public void setSALVER_ID(String SALVER_ID) {
        this.SALVER_ID = SALVER_ID;
    }

    public String getSTART_LOCATION() {
        return START_LOCATION;
    }

    public void setSTART_LOCATION(String START_LOCATION) {
        this.START_LOCATION = START_LOCATION;
    }

    public String getEND_LOCATION() {
        return END_LOCATION;
    }

    public void setEND_LOCATION(String END_LOCATION) {
        this.END_LOCATION = END_LOCATION;
    }

    @Override
    public String toString() {
        return "TaskFinishReq{" +
                "INSTRUCTION_CODE='" + INSTRUCTION_CODE + '\'' +
                ", SALVER_ID='" + SALVER_ID + '\'' +
                ", START_LOCATION='" + START_LOCATION + '\'' +
                ", END_LOCATION='" + END_LOCATION + '\'' +
                '}';
    }
}
